package com.item.service;

import com.item.dao.NoteAuthorMapper;
import com.item.dao.model.NoteAuthor;
import com.item.dao.model.NoteAuthorExample;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NoteAuthorService {
    @Autowired
    private NoteAuthorMapper noteAuthorMapper;

    private static final Logger logger = Logger.getLogger(NoteAuthorService.class);

    public int countByExample(NoteAuthorExample example) {
        return this.noteAuthorMapper.countByExample(example);
    }

    public NoteAuthor selectByPrimaryKey(String id) {
        return this.noteAuthorMapper.selectByPrimaryKey(id);
    }

    public List<NoteAuthor> selectByExample(NoteAuthorExample example) {
        return this.noteAuthorMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.noteAuthorMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(NoteAuthor record) {
        return this.noteAuthorMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(NoteAuthor record) {
        return this.noteAuthorMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(NoteAuthorExample example) {
        return this.noteAuthorMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(NoteAuthor record, NoteAuthorExample example) {
        return this.noteAuthorMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(NoteAuthor record, NoteAuthorExample example) {
        return this.noteAuthorMapper.updateByExample(record, example);
    }

    public int insert(NoteAuthor record) {
        return this.noteAuthorMapper.insert(record);
    }

    public int insertSelective(NoteAuthor record) {
        return this.noteAuthorMapper.insertSelective(record);
    }
}